package com.zsrt.scott.py;

import com.zsrt.scott.dao.Dao;
import com.zsrt.scott.dao.StudentDao;
import com.zsrt.scott.entity.Student;

public class Client {
	
public static void main(String[] args) throws ClassNotFoundException {
		
		Dao dao  = new StudentDao();
		
		
		Dao proxy = (Dao) new ProxyFactory(dao).createProxyInstanceForTarget();
		
		
		Student student = new Student();
		
		student.setId("66668");
		student.setName("yanminghao8");
		student.setAge("177");
		
		proxy.add(student);
		
		
		
	}

}
